package com.jxl.domain.convert;


import com.jxl.domain.entity.AuthUserBO;
import com.jxl.infra.basic.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthUserBOConvert {

    AuthUserBOConvert INSTANCE = Mappers.getMapper(AuthUserBOConvert.class);

    /**
     * 类型转换
     * @param authUserDto
     * @return
     */
    AuthUser convertBOToAuthUser(AuthUserBO authUserDto);

    /**
     * 类型转换
     * @param authUser
     * @return
     */
    AuthUserBO convertToAuthUserBO(AuthUser authUser);

    /**
     * 集合类型转换
     * @param authUserDtos
     * @return
     */
    List<AuthUser> convertBOToAuthUserList(List<AuthUserBO> authUserDtos);
}
